package com.situ.library.pojo.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class Book {
    @ExcelProperty(value = "ID")
    private Integer id;
    @ExcelProperty(value = "书名")
    private String name;
    @ExcelProperty(value = "分类")
    private Integer typeId;
    @ExcelProperty(value = "图片")
    private String photo;
    @ExcelProperty(value = "ISBN")
    private String isbn;
    @ExcelProperty(value = "作者")
    private String author;
    @ExcelProperty(value = "价格")
    private Double price;
    @ExcelProperty(value = "出版社")
    private String publisher;
    @ExcelProperty(value = "剩余数量")
    private Integer remain;
    @ExcelProperty(value = "总数量")
    private Integer count;
    @ExcelProperty(value = "入库时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date time;
}
